function addCookie(name,value,expiresHours)
{
  localStorage.setItem(name, value);
}

function getCookie(name){
  var data = localStorage.getItem(name);
  data = data==null?"":data;
  return data;
}

function deleteCookie(name){
  localStorage.removeItem(name);
}
